<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Geo3DML-CPP: include/geo3dml/Feature.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Geo3DML-CPP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_acc7f90eaa859a07dba55a8b62805b11.html">geo3dml</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">Feature.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_feature_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="comment">// UTF-8编码</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &quot;<a class="code" href="_geometry_8h.html">Geometry.h</a>&quot;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &quot;<a class="code" href="_field_value_8h.html">FieldValue.h</a>&quot;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegeo3dml.html">geo3dml</a> {</div>
<div class="foldopen" id="foldopen00010" data-start="{" data-end="};">
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html">   10</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classgeo3dml_1_1_feature.html">Feature</a> : <span class="keyword">public</span> <a class="code hl_class" href="classgeo3dml_1_1_object.html">Object</a> {</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a1b94316445f9c8962e1cf1167f902c51">   12</a></span>        <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a1b94316445f9c8962e1cf1167f902c51">Feature</a>();</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a670f65c1cbe2c1324258f0684511ef33">   13</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a670f65c1cbe2c1324258f0684511ef33">~Feature</a>();</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a37ad7d91cdba92df37e5c54af8259654">   16</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_feature.html">Feature</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a37ad7d91cdba92df37e5c54af8259654">SetName</a>(<span class="keyword">const</span> std::string&amp; name);</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a155ea79e509b93b45f3c8d17de008320">   17</a></span>        <span class="keyword">const</span> std::string&amp; <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a155ea79e509b93b45f3c8d17de008320">GetName</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a8248f9ab3ea0ade851e001657e6c5dbc">   22</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_feature.html">Feature</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a8248f9ab3ea0ade851e001657e6c5dbc">SetGeometry</a>(<a class="code hl_class" href="classgeo3dml_1_1_geometry.html">Geometry</a>* g);</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a288b539d12141875299ebc38fb5fa08c">   23</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_geometry.html">Geometry</a>* <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a288b539d12141875299ebc38fb5fa08c">GetGeometry</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a118910dec9d8c0501b9723079d38f884">   27</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_feature.html">Feature</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a118910dec9d8c0501b9723079d38f884">SetParentFeatureClass</a>(<span class="keyword">const</span> std::string&amp; <span class="keywordtype">id</span>);</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#ac5bf3bbf7ad7db19fdb315083bf3202a">   28</a></span>        <span class="keyword">const</span> std::string&amp; <a class="code hl_function" href="classgeo3dml_1_1_feature.html#ac5bf3bbf7ad7db19fdb315083bf3202a">GetParentFeatureClass</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a587980e52d3e5b0f5dd4e859f0de7634">   32</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_feature.html">Feature</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a587980e52d3e5b0f5dd4e859f0de7634">SetField</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgeo3dml_1_1_field_value.html">FieldValue</a>&amp; fv);</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a3b84f4c0e0c755589733bc67ad36235f">   33</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classgeo3dml_1_1_field_value.html">FieldValue</a>* <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a3b84f4c0e0c755589733bc67ad36235f">GetField</a>(<span class="keyword">const</span> std::string&amp; name) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a49a4c09e29c4f93e6c4106a2da0191a7">   34</a></span>        std::vector&lt;std::string&gt; <a class="code hl_function" href="classgeo3dml_1_1_feature.html#a49a4c09e29c4f93e6c4106a2da0191a7">GetFieldNames</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#af947aea2f52fbf96a16c959ed8a84cb3">   39</a></span>        <a class="code hl_struct" href="structgeo3dml_1_1_box3_d.html">Box3D</a> <a class="code hl_function" href="classgeo3dml_1_1_feature.html#af947aea2f52fbf96a16c959ed8a84cb3">GetMinimumBoundingRectangle</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#afc5fe4bdd456244e4c0f56d975205a9c">   42</a></span>        std::string <a class="code hl_variable" href="classgeo3dml_1_1_feature.html#afc5fe4bdd456244e4c0f56d975205a9c">name_</a>;</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a0b03a5bbdaaaa754480978e6c432ef5e">   43</a></span>        std::string <a class="code hl_variable" href="classgeo3dml_1_1_feature.html#a0b03a5bbdaaaa754480978e6c432ef5e">parentFeatureClassId_</a>;</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#a8a904cf587fe31a1f74a36cbc10e2a37">   44</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_geometry.html">Geometry</a>* <a class="code hl_variable" href="classgeo3dml_1_1_feature.html#a8a904cf587fe31a1f74a36cbc10e2a37">geometry_</a>;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_feature.html#ab8ecf840cf7ec756a98c78718a061a9f">   45</a></span>        std::map&lt;std::string, geo3dml::FieldValue&gt; <a class="code hl_variable" href="classgeo3dml_1_1_feature.html#ab8ecf840cf7ec756a98c78718a061a9f">fieldValues_</a>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>    };</div>
</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>}</div>
<div class="ttc" id="a_field_value_8h_html"><div class="ttname"><a href="_field_value_8h.html">FieldValue.h</a></div></div>
<div class="ttc" id="a_geometry_8h_html"><div class="ttname"><a href="_geometry_8h.html">Geometry.h</a></div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html"><div class="ttname"><a href="classgeo3dml_1_1_feature.html">geo3dml::Feature</a></div><div class="ttdef"><b>Definition</b> Feature.h:10</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a0b03a5bbdaaaa754480978e6c432ef5e"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a0b03a5bbdaaaa754480978e6c432ef5e">geo3dml::Feature::parentFeatureClassId_</a></div><div class="ttdeci">std::string parentFeatureClassId_</div><div class="ttdef"><b>Definition</b> Feature.h:43</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a118910dec9d8c0501b9723079d38f884"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a118910dec9d8c0501b9723079d38f884">geo3dml::Feature::SetParentFeatureClass</a></div><div class="ttdeci">Feature &amp; SetParentFeatureClass(const std::string &amp;id)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a155ea79e509b93b45f3c8d17de008320"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a155ea79e509b93b45f3c8d17de008320">geo3dml::Feature::GetName</a></div><div class="ttdeci">const std::string &amp; GetName() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a1b94316445f9c8962e1cf1167f902c51"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a1b94316445f9c8962e1cf1167f902c51">geo3dml::Feature::Feature</a></div><div class="ttdeci">Feature()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a288b539d12141875299ebc38fb5fa08c"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a288b539d12141875299ebc38fb5fa08c">geo3dml::Feature::GetGeometry</a></div><div class="ttdeci">Geometry * GetGeometry() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a37ad7d91cdba92df37e5c54af8259654"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a37ad7d91cdba92df37e5c54af8259654">geo3dml::Feature::SetName</a></div><div class="ttdeci">Feature &amp; SetName(const std::string &amp;name)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a3b84f4c0e0c755589733bc67ad36235f"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a3b84f4c0e0c755589733bc67ad36235f">geo3dml::Feature::GetField</a></div><div class="ttdeci">const FieldValue * GetField(const std::string &amp;name) const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a49a4c09e29c4f93e6c4106a2da0191a7"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a49a4c09e29c4f93e6c4106a2da0191a7">geo3dml::Feature::GetFieldNames</a></div><div class="ttdeci">std::vector&lt; std::string &gt; GetFieldNames() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a587980e52d3e5b0f5dd4e859f0de7634"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a587980e52d3e5b0f5dd4e859f0de7634">geo3dml::Feature::SetField</a></div><div class="ttdeci">Feature &amp; SetField(const FieldValue &amp;fv)</div><div class="ttdoc">{@</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a670f65c1cbe2c1324258f0684511ef33"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a670f65c1cbe2c1324258f0684511ef33">geo3dml::Feature::~Feature</a></div><div class="ttdeci">virtual ~Feature()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a8248f9ab3ea0ade851e001657e6c5dbc"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a8248f9ab3ea0ade851e001657e6c5dbc">geo3dml::Feature::SetGeometry</a></div><div class="ttdeci">Feature &amp; SetGeometry(Geometry *g)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_a8a904cf587fe31a1f74a36cbc10e2a37"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#a8a904cf587fe31a1f74a36cbc10e2a37">geo3dml::Feature::geometry_</a></div><div class="ttdeci">Geometry * geometry_</div><div class="ttdef"><b>Definition</b> Feature.h:44</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_ab8ecf840cf7ec756a98c78718a061a9f"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#ab8ecf840cf7ec756a98c78718a061a9f">geo3dml::Feature::fieldValues_</a></div><div class="ttdeci">std::map&lt; std::string, geo3dml::FieldValue &gt; fieldValues_</div><div class="ttdef"><b>Definition</b> Feature.h:45</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_ac5bf3bbf7ad7db19fdb315083bf3202a"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#ac5bf3bbf7ad7db19fdb315083bf3202a">geo3dml::Feature::GetParentFeatureClass</a></div><div class="ttdeci">const std::string &amp; GetParentFeatureClass() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_af947aea2f52fbf96a16c959ed8a84cb3"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#af947aea2f52fbf96a16c959ed8a84cb3">geo3dml::Feature::GetMinimumBoundingRectangle</a></div><div class="ttdeci">Box3D GetMinimumBoundingRectangle() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_feature_html_afc5fe4bdd456244e4c0f56d975205a9c"><div class="ttname"><a href="classgeo3dml_1_1_feature.html#afc5fe4bdd456244e4c0f56d975205a9c">geo3dml::Feature::name_</a></div><div class="ttdeci">std::string name_</div><div class="ttdef"><b>Definition</b> Feature.h:42</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_field_value_html"><div class="ttname"><a href="classgeo3dml_1_1_field_value.html">geo3dml::FieldValue</a></div><div class="ttdef"><b>Definition</b> FieldValue.h:7</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_geometry_html"><div class="ttname"><a href="classgeo3dml_1_1_geometry.html">geo3dml::Geometry</a></div><div class="ttdoc">A Geometry object is thread safe.</div><div class="ttdef"><b>Definition</b> Geometry.h:11</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_object_html"><div class="ttname"><a href="classgeo3dml_1_1_object.html">geo3dml::Object</a></div><div class="ttdef"><b>Definition</b> Geo3DML.h:7</div></div>
<div class="ttc" id="anamespacegeo3dml_html"><div class="ttname"><a href="namespacegeo3dml.html">geo3dml</a></div><div class="ttdef"><b>Definition</b> AbstractMetadata.h:6</div></div>
<div class="ttc" id="astructgeo3dml_1_1_box3_d_html"><div class="ttname"><a href="structgeo3dml_1_1_box3_d.html">geo3dml::Box3D</a></div><div class="ttdef"><b>Definition</b> Box3D.h:7</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
